package com.ws.shop.action.front;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


import com.ws.shop.bean.Page;
import com.ws.shop.service.ExpressService;
import com.ws.shop.util.RequestUtil;

@Controller
@RequestMapping(value = "/express/*")
public class ExpressAction extends BaseFrontAction{

	private static Logger log = Logger.getLogger(ExpressAction.class);
	@Autowired
	private ExpressService expressService;
	
	// 即将进行的竞拍
	@RequestMapping(value = "express.do", method = RequestMethod.GET)
	public String express(HttpServletRequest request){
		int pageno = RequestUtil.getIntParameter(request, Page.PAGE_NO, 1);
		Page page = new Page(pageno, 10);
		expressService.findExpress(page);
		request.setAttribute("express", page);
		return "index";
	}
}
